package com.mashibing.tank.factory;

import com.mashibing.tank.pojo.*;

/**
 * @ClassName DefaultFactory
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/8/29 18:34
 */
public class DefaultFactory extends GameFactory {

    @Override
    public BaseTank createTank(int x, int y, Dir dir, Group group, TankFrame tankFrame) {
        return new Tank( x,  y,  dir,  group,  tankFrame);
    }

    @Override
    public BaseExplode createExplode(int x, int y, TankFrame tankFrame) {
        return new Explode( x, y,tankFrame);
    }

    @Override
    public BaseBullet createBullet(int x, int y, Dir dir,Group group, TankFrame tankFrame) {
        return new Bullet( x,  y,  dir, group,  tankFrame);
    }
}
